package com.vinfai.patterns.template;

/**
 * 模板模式：使用 inheritance, 
 * strategy pattern : compoistion
 * 
 * @author fangwh
 *
 */
public class Client {
	
	public static void main(String[] args){
		CalcTimeDepoistInerset interset = new CalcTimeDepoistInerset();
		double moneys = interset.doCalRate(3, 10000d);
		System.out.println(moneys);
		
		CalcDemandDepoistInterset demand = new CalcDemandDepoistInterset();
		double moneys2 = demand.doCalRate(12, 10000);
		System.out.println(moneys2);
	}
}
